package com.leo.sunnyweather.logic.network

import com.leo.sunnyweather.base.SunnyWeatherApplication
import com.leo.sunnyweather.logic.model.PlaceResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Author: Leo Liao <lliao@midtronics.com>
 * Date: 31/01/2024 11:22
 * Description:
 */
interface PlaceService {

    @GET("v2/place?token=${SunnyWeatherApplication.NET_TOKEN}&lang=zh_CN")
    fun getPlaceByName(@Query("query") name: String): Call<PlaceResponse>
}